﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataCom;
using ConfigurationFactory;

namespace DBAccessLib
{
    public abstract class Config
    {
        public static DataTable GetLineWatchSys(string lineCode)
        {
            ILineWatchSysAccess access = DataCommunicationFactory.GetLineWatchSysAccess();
            DataTable dt = access.GetRecordsByLineCode(lineCode);
            return dt;
        }

        public static void UpdateLineWatchSysRecord(string function, string line, string content1, string content2, string content3, string content4, string user)
        {
            ILineWatchSysAccess access = DataCommunicationFactory.GetLineWatchSysAccess();
            access.UpdateRecordByLineAndFunction(line, function, content1, content2, content3, content4, user);
        }
    }
}
